#!/usr/bin/env rc


hex=`` () {head -n1}

fn c {
  printf '0x%s' `{echo $hex | cut -c $1}
}

printf '%i,%i,%i\n' `{c 1,2} `{c 3,4} `{c 5,6}
